package com.swotxu.common.conf.anno;

import com.swotxu.common.conf.MallSessionConfig;
import com.swotxu.common.conf.MyThreadConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 开启商城线程池
 * 相关配置：
 * mall:
 *   thread:
 *     core-size: 20
 *     max-size: 200
 *     keep-alive-time: 10
 *     work-queue-size: 10000
 *
 * @Date: 2022/4/30 17:55
 * @Author: swotXu
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Documented
@Import({MyThreadConfig.class})
@Configuration
public @interface EnableMallThreadPoolExecutor {
}
